package store.model;

/**
 * 会员
 */
public class Vip extends Account{


    /**
     * 姓名
     */
    private String name;

    /**
     * 积分
     */
    private int point;

    /**
     * 余额
     */
    private double money;

    /**
     * 会员等级
     */
    private Level level;

    public Vip(String phone, String password, String name){
        super(phone, password);
        this.name = name;
    }

    public Vip(String phone, String password, String name, Level level){
        super(phone, password);
        this.name = name;
        this.level = level;
    }



    // getter / setter

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getPoint() {
        return point;
    }

    public void setPoint(int point) {
        this.point = point;
    }

    public double getMoney() {
        return money;
    }

    public void setMoney(double money) {
        this.money = money;
    }

    public Level getLevel() {
        return level;
    }

    public void setLevel(Level level) {
        this.level = level;
    }

    @Override
    public String toString() {
        return "会员电话：" + getPhone() +
                ", 密码：******"+
                ", 会员姓名：" + name +
                ", 积分：" + point +
                ", 余额：" + money +
                ", 会员等级：" + level;
    }
}
